﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Newton
{
    class Board
    {
        GameWindow Window;

        Texture2D boardTexture;

        //Rectangle boardRect;

        //Color[] boardColors;

        //public Vector2 hudPosition;

        //public Color hudColor;

        Hud hud;

        public Board(GameWindow Window, Texture2D Texture)
        {
            this.Window = Window;
            this.boardTexture = Texture;
            hud = new Hud(Window);  
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(boardTexture, new Rectangle(0, 0, 800, 600),new Rectangle(345,730,336,300), Color.White);

            hud.Draw(gameTime, spriteBatch);
           // spriteBatch.DrawString(Game1.arial20, "Vidas: " + lifes + "\nPontos: " + points, hudPosition, hudColor);
        }

        public void Update(GameTime gameTime, KeyboardState keyboardState, Player player)
        {
            hud.Update(gameTime, keyboardState, player);
        }

        

    }
}
